import axios from 'axios'

const api = axios.create({
  baseURL: 'http://your-api-domain.com/api',
  timeout: 5000
})

export default {
  getOrderDetail(id) {
    return api.get(`/orders/${id}`)
  },
  cancelOrder(id) {
    return api.put(`/orders/${id}/cancel`)
  },
  deleteOrder(id) {
    return api.delete(`/orders/${id}`)
  }
}